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