Skip to content

Commit

Permalink
Add dummy Rekognition test to succeed the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonidas-from-XIV committed Aug 29, 2019
1 parent 2c5275c commit 0ee84a9
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions libraries/rekognition/lib_test/aws_rekognition_test.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
open OUnit
open Aws_rds

module TestSuite(Runtime : sig
type 'a m
val run_request :
region:string
-> (module Aws.Call with type input = 'input
and type output = 'output
and type error = 'error)
-> 'input
-> [`Ok of 'output | `Error of 'error Aws.Error.t] m
val un_m : 'a m -> 'a
end) = struct

let noop_test () =
"Noop Rekognition test succeeds"
@?false

let test_cases =
[ "Rekognition noop" >:: noop_test ]

let rec was_successful =
function
| [] -> true
| RSuccess _::t
| RSkip _::t ->
was_successful t
| RFailure _::_
| RError _::_
| RTodo _::_ ->
false
let _ =
let suite = "Tests" >::: test_cases in
let verbose = ref false in
let set_verbose _ = verbose := true in
Arg.parse
[("-verbose", Arg.Unit set_verbose, "Run the test in verbose mode.");]
(fun x -> raise (Arg.Bad ("Bad argument : " ^ x)))
("Usage: " ^ Sys.argv.(0) ^ " [-verbose]");
if not (was_successful (run_test_tt ~verbose:!verbose suite)) then
exit 1
end

0 comments on commit 0ee84a9

Please sign in to comment.