Add tests for Target API 17.

Change-Id: Ib35780001929655c21a24c4a0c78ef1a5eb27137
diff --git a/tests/P_set_target_api_17/IN_CTS b/tests/P_set_target_api_17/IN_CTS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/P_set_target_api_17/IN_CTS
diff --git a/tests/P_set_target_api_17/set_target_api_17.rs b/tests/P_set_target_api_17/set_target_api_17.rs
new file mode 100644
index 0000000..cee7973
--- /dev/null
+++ b/tests/P_set_target_api_17/set_target_api_17.rs
@@ -0,0 +1,21 @@
+// -target-api 17
+#pragma version(1)
+#pragma rs java_package_name(android.renderscript.cts)
+
+#if RS_VERSION != 17
+#error Invalid RS_VERSION
+#endif
+
+#define RS_MSG_TEST_PASSED 100
+#define RS_MSG_TEST_FAILED 101
+
+void check(int version) {
+    if (version != RS_VERSION) {
+        rsDebug("version: ", version);
+        rsDebug("RS_VERSION: ", RS_VERSION);
+        rsSendToClient(RS_MSG_TEST_FAILED);
+    } else {
+        rsSendToClientBlocking(RS_MSG_TEST_PASSED);
+    }
+}
+
diff --git a/tests/P_set_target_api_17/stderr.txt.expect b/tests/P_set_target_api_17/stderr.txt.expect
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/P_set_target_api_17/stderr.txt.expect
diff --git a/tests/P_set_target_api_17/stdout.txt.expect b/tests/P_set_target_api_17/stdout.txt.expect
new file mode 100644
index 0000000..dfa5dc9
--- /dev/null
+++ b/tests/P_set_target_api_17/stdout.txt.expect
@@ -0,0 +1 @@
+Generating ScriptC_set_target_api_17.java ...