forked from wolfSSL/wolfssl
make sure commit tests don't overwrite options.h
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
# save current config
|
# save current config
|
||||||
echo "\n\nSaving current config\n\n"
|
echo "\n\nSaving current config\n\n"
|
||||||
cp config.status tmp.status
|
cp config.status tmp.status
|
||||||
|
cp cyassl/options.h tmp.options.h
|
||||||
|
|
||||||
# stash modified files not part of this commit, don't test them
|
# stash modified files not part of this commit, don't test them
|
||||||
echo "\n\nStashing any modified files not part of commit\n\n"
|
echo "\n\nStashing any modified files not part of commit\n\n"
|
||||||
@@ -27,6 +28,7 @@ mv tmp.status config.status
|
|||||||
./config.status >/dev/null 2>&1
|
./config.status >/dev/null 2>&1
|
||||||
make clean >/dev/null 2>&1
|
make clean >/dev/null 2>&1
|
||||||
make -j 8 >/dev/null 2>&1
|
make -j 8 >/dev/null 2>&1
|
||||||
|
mv tmp.options.h cyassl/options.h
|
||||||
|
|
||||||
[ $RESULT -ne 0 ] && echo "\nOops, your commit failed\n" && exit 1
|
[ $RESULT -ne 0 ] && echo "\nOops, your commit failed\n" && exit 1
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user