aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-06-25 14:36:58 +0200
committerThomas White <taw@physics.org>2018-06-25 14:36:58 +0200
commit4ec097a154351883f5c3d0a8275c7d941da4d81a (patch)
tree64ca931c5e67e41dd8d96127c8dab0de6fae712d /tests
parent1ec0429da9f345ffa8fd6775fc3dee8cab20fbc9 (diff)
Switch remaining tests from "ex" to "sed"
Diffstat (limited to 'tests')
-rwxr-xr-xtests/first_merge_check5
-rwxr-xr-xtests/fourth_merge_check5
-rwxr-xr-xtests/second_merge_check5
-rwxr-xr-xtests/third_merge_check5
4 files changed, 8 insertions, 12 deletions
diff --git a/tests/first_merge_check b/tests/first_merge_check
index 4e24a0ad..3b1cd60f 100755
--- a/tests/first_merge_check
+++ b/tests/first_merge_check
@@ -45,9 +45,8 @@ process_hkl -i first_merge_check.stream -o first_merge_check.hkl --no-polarisati
if [ $? -ne 0 ]; then
exit 1;
fi
-ex -c '/End of reflections/
-.,$d
-x' first_merge_check.hkl
+sed -n '/End of reflections/q;p' first_merge_check.hkl > tempF.hkl
+mv tempF.hkl first_merge_check.hkl
diff first_merge_check.hkl first_merge_check_ans.hkl
if [ $? -ne 0 ]; then
exit 1
diff --git a/tests/fourth_merge_check b/tests/fourth_merge_check
index 418ce367..e55f020c 100755
--- a/tests/fourth_merge_check
+++ b/tests/fourth_merge_check
@@ -29,9 +29,8 @@ process_hkl -i fourth_merge_check.stream -o fourth_merge_check.hkl --no-polarisa
if [ $? -ne 0 ]; then
exit 1;
fi
-ex -c '/End of reflections/
-.,$d
-x' fourth_merge_check.hkl
+sed -n '/End of reflections/q;p' fourth_merge_check.hkl > tempf.hkl
+mv tempf.hkl fourth_merge_check.hkl
diff fourth_merge_check.hkl fourth_merge_check_ans.hkl
if [ $? -ne 0 ]; then
exit 1
diff --git a/tests/second_merge_check b/tests/second_merge_check
index 2636ccdb..7a5c6134 100755
--- a/tests/second_merge_check
+++ b/tests/second_merge_check
@@ -45,9 +45,8 @@ process_hkl -y -1 -i second_merge_check.stream -o second_merge_check.hkl --no-po
if [ $? -ne 0 ]; then
exit 1;
fi
-ex -c '/End of reflections/
-.,$d
-x' second_merge_check.hkl
+sed -n '/End of reflections/q;p' second_merge_check.hkl > tempS.hkl
+mv tempS.hkl second_merge_check.hkl
diff second_merge_check.hkl second_merge_check_ans.hkl
if [ $? -ne 0 ]; then
exit 1
diff --git a/tests/third_merge_check b/tests/third_merge_check
index 7daf708d..da6cc9e2 100755
--- a/tests/third_merge_check
+++ b/tests/third_merge_check
@@ -60,9 +60,8 @@ process_hkl -i third_merge_check.stream -o third_merge_check.hkl --no-polarisati
if [ $? -ne 0 ]; then
exit 1;
fi
-ex -c '/End of reflections/
-.,$d
-x' third_merge_check.hkl
+sed -n '/End of reflections/q;p' third_merge_check.hkl > tempT.hkl
+mv tempT.hkl third_merge_check.hkl
diff third_merge_check.hkl third_merge_check_ans.hkl
if [ $? -ne 0 ]; then
exit 1