aboutsummaryrefslogtreecommitdiff
path: root/script/create_test.sh
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-11 14:53:20 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-11 14:53:20 +0200
commit39951f08a2938683d800c677c3a244e9ff8dbe19 (patch)
tree9321278f57c91d070e269fc2d2f95d4f2cb00fdf /script/create_test.sh
parent306a69eb9ae88813cf0be0aa3e001481e12220a1 (diff)
downloadlibft-39951f08a2938683d800c677c3a244e9ff8dbe19.tar.gz
libft-39951f08a2938683d800c677c3a244e9ff8dbe19.tar.bz2
libft-39951f08a2938683d800c677c3a244e9ff8dbe19.zip
Removing none c,h files for correction
Diffstat (limited to 'script/create_test.sh')
-rwxr-xr-xscript/create_test.sh22
1 files changed, 0 insertions, 22 deletions
diff --git a/script/create_test.sh b/script/create_test.sh
deleted file mode 100755
index a0c9773..0000000
--- a/script/create_test.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-[ $# -eq 0 ] && echo "Usage $0 src_file_path+" && exit 1
-
-for src_file_path in $@
-do
- src_file_dir=`dirname $src_file_path`
- src_file_name=`basename $src_file_path`
- src_file_name_no_ext=`echo $src_file_name | sed 's/\.c//'`
- template='script/test.template.c'
-
- test_file_path="test/$src_file_dir/test_$src_file_name"
-
- [ -f $test_file_path ] &&
- echo "Cannot create test $test_file_path already exists" &&
- continue
-
- mkdir -p "test/$src_file_dir"
- sed "s/<funcname>/$src_file_name_no_ext/" $template > $test_file_path
- echo "Created new test file at $test_file_path"
-done
-