For tests, use ./gradlew :native:native.tests:codegenBoxTest and ./gradlew :kotlin-native:backend.native:tests:run.
./gradlew :native:native.tests:codegenBoxTest
./gradlew :kotlin-native:backend.native:tests:run
For more details see Testing.