git clone https://github.com/superxcgm/xcShell.git
cd xcShell
./auto/build.sh
make install
xcShell
./auto/build.sh
./auto/format.sh
./auto/run.sh
./auto/lint.sh
./auto/test.sh
./auto/functional_test.sh run
./auto/functional_test.sh generate xxx
# For example: ./auto/functional_test.sh generate pipe
This command will generate empty file xxx.functional_test.in
and xxx.functional_test.expected.out
in dir auto/data
. And then you can write your test in xxx.functional_test.in
, run functional test and check output of you test. It
should be located in /tmp/xcShell_functional_test/xxx.functional_test.out
.
You can save output by ./auto/functional_test.sh apply xxx
if the output file match you expect.