[test suite] use exit status in wrapper scripts
This commit is contained in:
@@ -6,4 +6,4 @@ cd afl
|
||||
|
||||
./afl-compile.sh --enable-profile-coverage
|
||||
|
||||
exit
|
||||
exit $?
|
||||
|
||||
@@ -7,4 +7,4 @@ CC=afl-gcc ./extras/apparmor/configure_args.sh $@
|
||||
make clean
|
||||
make
|
||||
cd test/afl
|
||||
exit
|
||||
exit $?
|
||||
|
||||
@@ -5,4 +5,4 @@ CC=afl-gcc ./extras/apparmor/configure_args.sh --enable-afl-fuzzing $@
|
||||
make clean
|
||||
make
|
||||
cd test/afl
|
||||
exit
|
||||
exit $?
|
||||
|
||||
@@ -10,4 +10,4 @@ cd afl
|
||||
|
||||
echo "[+] Code coverage available in the $RESULTS_DIR/ directory"
|
||||
|
||||
exit
|
||||
exit $?
|
||||
|
||||
@@ -15,8 +15,9 @@ TS=`date +"%m%d%y%H%M%S"`
|
||||
mkdir $OUT_DIR
|
||||
|
||||
### make sure the client can handle the rc file
|
||||
./fuzzing-wrappers/helpers/fwknop-rc-test.sh || exit
|
||||
./fuzzing-wrappers/helpers/fwknop-rc-test.sh || \
|
||||
{ echo "[*] Client rc file fuzzing requires compilation with ./compile/afl-compile-no-enable-args.sh"; exit 1; }
|
||||
|
||||
LD_LIBRARY_PATH=$LIB_DIR afl-fuzz -t 1000 -i $IN_DIR -o $OUT_DIR -f $OUT_DIR/fwknoprc $CLIENT --rc-file $OUT_DIR/fwknoprc -T -a 1.1.1.1 -n testhost.com
|
||||
|
||||
exit
|
||||
exit $?
|
||||
|
||||
@@ -8,4 +8,4 @@ do
|
||||
./$HELPER_SH $f
|
||||
done
|
||||
|
||||
exit
|
||||
exit $?
|
||||
|
||||
@@ -8,3 +8,5 @@ then
|
||||
fi
|
||||
|
||||
LD_LIBRARY_PATH=../../lib/.libs ../../client/.libs/fwknop --rc-file $RC_FILE -T -a 1.1.1.1 -n testhost.com
|
||||
|
||||
exit $?
|
||||
|
||||
@@ -8,4 +8,4 @@ do
|
||||
./$HELPER_SH $f
|
||||
done
|
||||
|
||||
exit
|
||||
exit $?
|
||||
|
||||
@@ -8,3 +8,5 @@ then
|
||||
fi
|
||||
|
||||
LD_LIBRARY_PATH=../../lib/.libs ../../server/.libs/fwknopd -c ../conf/ipt_snat_fwknopd.conf -a $ACCESS_FILE -A -f -t --exit-parse-config -D
|
||||
|
||||
exit $?
|
||||
|
||||
@@ -8,4 +8,4 @@ do
|
||||
./$HELPER_SH $f
|
||||
done
|
||||
|
||||
exit
|
||||
exit $?
|
||||
|
||||
@@ -8,3 +8,5 @@ then
|
||||
fi
|
||||
|
||||
LD_LIBRARY_PATH=../../lib/.libs ../../server/.libs/fwknopd -c $FWKNOPD_CONF_FILE -a ../conf/default_access.conf -A -f -t --exit-parse-config -D
|
||||
|
||||
exit $?
|
||||
|
||||
@@ -8,4 +8,4 @@ do
|
||||
./$HELPER_SH $f
|
||||
done
|
||||
|
||||
exit
|
||||
exit $?
|
||||
|
||||
@@ -3,3 +3,5 @@
|
||||
SPA_PKT="1716411011200157:root:1397329899:2.0.1:1:127.0.0.2,tcp/22:AAAAA"
|
||||
|
||||
echo -n $SPA_PKT | LD_LIBRARY_PATH=../../lib/.libs ../../server/.libs/fwknopd -c ../conf/default_fwknopd.conf -a ../conf/default_access.conf -A -f -t
|
||||
|
||||
exit $?
|
||||
|
||||
@@ -15,8 +15,8 @@ TS=`date +"%m%d%y%H%M%S"`
|
||||
mkdir $OUT_DIR
|
||||
|
||||
### make sure that parsing the access.conf file works
|
||||
./fuzzing-wrappers/helpers/fwknopd-parse-access.sh || exit
|
||||
./fuzzing-wrappers/helpers/fwknopd-parse-access.sh || exit $?
|
||||
|
||||
LD_LIBRARY_PATH=$LIB_DIR afl-fuzz -t 1000 -i $IN_DIR -o $OUT_DIR -f $OUT_DIR/afl_access.conf $SERVER -c ../conf/ipt_snat_fwknopd.conf -a $OUT_DIR/afl_access.conf -A -f -t --exit-parse-config -D
|
||||
|
||||
exit
|
||||
exit $?
|
||||
|
||||
@@ -15,8 +15,8 @@ TS=`date +"%m%d%y%H%M%S"`
|
||||
mkdir $OUT_DIR
|
||||
|
||||
### make sure that parsing the fwknopd.conf file works
|
||||
./fuzzing-wrappers/helpers/fwknopd-parse-conf.sh || exit
|
||||
./fuzzing-wrappers/helpers/fwknopd-parse-conf.sh || exit $?
|
||||
|
||||
LD_LIBRARY_PATH=$LIB_DIR afl-fuzz -t 1000 -i $IN_DIR -o $OUT_DIR -f $OUT_DIR/afl_fwknopd.conf $SERVER -c $OUT_DIR/afl_fwknopd.conf -a $OUT_DIR/afl_access.conf -A -f -t --exit-parse-config -D
|
||||
|
||||
exit
|
||||
exit $?
|
||||
|
||||
@@ -15,8 +15,8 @@ TS=`date +"%m%d%y%H%M%S"`
|
||||
mkdir $OUT_DIR
|
||||
|
||||
### make sure that a basic SPA packet to stdin in fwknopd -A mode works
|
||||
./fuzzing-wrappers/helpers/fwknopd-stdin-test.sh || exit
|
||||
./fuzzing-wrappers/helpers/fwknopd-stdin-test.sh || exit $?
|
||||
|
||||
LD_LIBRARY_PATH=$LIB_DIR afl-fuzz -t 1000 -i $IN_DIR -o $OUT_DIR $SERVER -c ../conf/default_fwknopd.conf -a ../conf/default_access.conf -A -f -t
|
||||
|
||||
exit
|
||||
exit $?
|
||||
|
||||
Reference in New Issue
Block a user