From bd8eaaea4edb88f7be70aa5bac51c16f73f7f541 Mon Sep 17 00:00:00 2001
From: samuel hanot <smlhnt@gmail.com>
Date: Mon, 5 Mar 2018 13:42:17 +0100
Subject: [PATCH] add test values to check against

---
 test/3368/result_check.txt |  4 ++++
 test/3368/test.sh          | 11 +++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 test/3368/result_check.txt
 create mode 100755 test/3368/test.sh

diff --git a/test/3368/result_check.txt b/test/3368/result_check.txt
new file mode 100644
index 0000000..d524e89
--- /dev/null
+++ b/test/3368/result_check.txt
@@ -0,0 +1,4 @@
+1 4 0.720751
+2 16 0.809344
+3 64 0.877221
+4 256 0.932163
diff --git a/test/3368/test.sh b/test/3368/test.sh
new file mode 100755
index 0000000..77d7ebf
--- /dev/null
+++ b/test/3368/test.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+../../recursive_gmconvert.sh -f emd_3368.map -t $(cat cutoff.txt) -n 4 -N 2 -s
+
+for f in 1 2 3 4
+do
+	echo $f $(awk '/^#Ngauss/{N=$2} /^CC/{CC=$2; print N,CC}' < $f/gmmscore_threshold)
+done > result.txt
+
+result=$(paste result.txt result_check.txt | awk '{checksum+=($1-$4)/$4+($2-$5)/$5+($3-$6)/$6;n+=1} END{print checksum/n>0.01}')
+exit $result
-- 
GitLab