aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBaylac-Jacqué Félix <felix@alternativebit.fr>2017-08-09 11:06:26 +0200
committerBaylac-Jacqué Félix <felix@alternativebit.fr>2017-08-09 11:06:26 +0200
commit77207e733d16ec50810a0bbd7869c8c29324a731 (patch)
tree22c5d2d9d7df1735be47fa02c8dc228f911e8a12 /tests
parentuapi: upstream change (diff)
downloadwireguard-hs-77207e733d16ec50810a0bbd7869c8c29324a731.tar.xz
wireguard-hs-77207e733d16ec50810a0bbd7869c8c29324a731.zip
Refactor project structure to exec + lib.
We want to add some unit tests to the project, hence, we need a proper library.
Diffstat (limited to 'tests')
-rw-r--r--tests/spec/Network/WireGuard/RPCSpec.hs11
-rw-r--r--tests/spec/Spec.hs1
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/spec/Network/WireGuard/RPCSpec.hs b/tests/spec/Network/WireGuard/RPCSpec.hs
new file mode 100644
index 0000000..b0422a3
--- /dev/null
+++ b/tests/spec/Network/WireGuard/RPCSpec.hs
@@ -0,0 +1,11 @@
+module Network.WireGuard.RPCSpec (spec) where
+
+import Test.Hspec (Spec, describe, it, shouldBe)
+
+import Network.WireGuard.RPC (runRPC)
+
+
+spec :: Spec
+spec = describe "test" $
+ it "should fail" $
+ True `shouldBe` False
diff --git a/tests/spec/Spec.hs b/tests/spec/Spec.hs
new file mode 100644
index 0000000..a824f8c
--- /dev/null
+++ b/tests/spec/Spec.hs
@@ -0,0 +1 @@
+{-# OPTIONS_GHC -F -pgmF hspec-discover #-}