Logo
Explore Help
Register Sign In
github-mirror/fish-shell
github-mirror/fish-shell
2
0
Fork 0
You've already forked fish-shell
mirror of https://github.com/fish-shell/fish-shell.git synced 2025-02-24 15:16:03 +08:00
Code Issues Actions Packages Projects Releases Wiki Activity
fish-shell/tests/invocation/init-command.out

2 lines
13 B
Plaintext
Raw Normal View History

Add test harness for fish command invocation, and tests for init command. The new '-C' initial command needs some tests, and as there are no tests just yet for the command invocation, this change adds a harness and calls it from the high-level tests in the Makefile. The tests are similar in style to the other high level tests, in that we capture the output and compare it to that which we expect. The harness itself is written in bash - sorry - because we're testing the fish shell's invocation, and trying to do that with the fish we've just built wouldn't actually make for a very useful test when things go wrong. The 'tests/invocation.sh' script can be executed manually, or as part of the 'make test' target, to make it easy to use both as part of the development and as part of automation. The harness has only been tested on linux with bash 4.3.11, and requires grep and sed. Although not tested with OS X, I believe I have avoided the syntax which is inconsistent. The tests added here cover just the initial command's basic execution, and when it is mixed with the regular '-c' command.
2017-06-29 16:11:58 +01:00
init-command
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.4 Page: 285ms Template: 25ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API