mirror of
https://github.com/kevinnlsamuel/stdouterr.git
synced 2025-12-06 09:55:58 +05:30
Compare commits
4 Commits
0989dd90b7
...
29db93f9fe
| Author | SHA1 | Date | |
|---|---|---|---|
|
29db93f9fe
|
|||
|
804efb6b39
|
|||
|
639a8847e7
|
|||
|
a592500040
|
7
Makefile
7
Makefile
@@ -1,4 +1,4 @@
|
||||
.PHONY: all builddir configure compile clean
|
||||
.PHONY: all builddir configure compile clean test
|
||||
build: prebuild configure compile
|
||||
|
||||
INSTALL = install
|
||||
@@ -36,3 +36,8 @@ install: preinstall
|
||||
uninstall:
|
||||
rm ${bindir}${BIN}
|
||||
rm ${mandir}${MAN}
|
||||
|
||||
test:
|
||||
test/default.sh
|
||||
test-run:
|
||||
test/stdouterr
|
||||
|
||||
4
test/.gitignore
vendored
4
test/.gitignore
vendored
@@ -1,2 +1,2 @@
|
||||
test-output
|
||||
stdouterr
|
||||
/output
|
||||
/stdouterr
|
||||
|
||||
@@ -19,8 +19,8 @@ curr_hash=$(get_last_commit)
|
||||
script_dir="$(realpath -e $(dirname "${0}") 2>/dev/null)"
|
||||
project_root=${script_dir%/*} # remove everything after the final `/`
|
||||
|
||||
test_dir="${project_root}/dev/tests.d"
|
||||
out_dir="${project_root}/dev/test-output"
|
||||
test_dir="${project_root}/test"
|
||||
out_dir="${test_dir}/output"
|
||||
[[ ! -d "${out_dir}" ]] && mkdir -p "${out_dir}"
|
||||
src_dir="${project_root}/src"
|
||||
|
||||
@@ -107,14 +107,14 @@ test(){
|
||||
echo
|
||||
echo
|
||||
echo "=== end of test ==="
|
||||
return ret
|
||||
return ${ret}
|
||||
}
|
||||
|
||||
if check_compilers; then
|
||||
if compile; then
|
||||
if test "$@"; then
|
||||
echo "completed with exit code $?"
|
||||
ln -sfn "${oname}" "${project_root}/dev/stdouterr"
|
||||
ln -sfn "${oname}" "${test_dir}/stdouterr"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user