-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dummy Rekognition test to succeed the build
- Loading branch information
1 parent
e222528
commit 8068bba
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|