Michal Lenc
a4ceb82d67
testing/fstest: add number of correct/incorrect tests
...
Verbose output for CI testing with OK and FAILED number of tests.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-10-18 16:52:24 -04:00
anjiahao
34f71ec25b
fstest:fix build break
...
fstest_main.c:340:47: note: expected ‘struct fstest_ctx_s *’ but argument is of type ‘fsblkcnt_t’ {aka ‘long long unsigned int’}
340 | static int fstest_gc(FAR struct fstest_ctx_s *ctx, size_t nbytes)
| ~~~~~~~~~~~~~~~~~~~~~^~~
fstest_main.c:1168:13: error: too few arguments to function ‘fstest_gc’
1168 | ret = fstest_gc(buf.f_bfree);
| ^~~~~~~~~
fstest_main.c:340:12: note: declared here
340 | static int fstest_gc(FAR struct fstest_ctx_s *ctx, size_t nbytes)
| ^~~
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-08-11 21:04:44 +08:00
Xiang Xiao
134b8b538f
Replace all strcat with strlcat
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-08 21:35:16 +03:00
lilei19
41f60bd669
change strcpy to strlcpy
...
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-02-22 23:09:55 +08:00
dongjiuzhu1
2e0c1c1ddb
app/fstest: config the number of open file and the maximum size of file
...
adjust resource using on resource-constrained systems
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2022-12-29 13:38:44 +08:00
crafcat7
a799738184
testing/fstest:Remove duplicate macro references in source code
2022-11-14 22:41:53 +08:00
crafcat7
606ebe99d9
testing/fstest:Remove duplicate macro references in source code
...
There is a macro configuration in the source code, and the macro configuration is also referenced in Kconfig. Delete the macro configuration in the source file, whichever is in Kconfig.
2022-11-14 22:41:53 +08:00
Fotis Panagiotopoulos
f85a6b6fb9
Added poweroff in fs and mm tests.
2022-11-08 02:52:46 +08:00
Xiang Xiao
b515a00fea
zmodem: Move crc16.h and crc32.h from host to host/nuttx
...
to avoid the conflict with the 3rd party library
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-13 13:28:30 +03:00
anjiahao
99629e9b5f
fstest:support fstest can run many times
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-06-04 01:14:37 +08:00
Xiang Xiao
c9f736005a
testing/fstest: Zero g_nfailed too in fstest_delallfiles
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
f8ebeb8fd8
testing/fstest: Print the delta of memory info
...
to catch the memmory leak quickly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
121a6e58ff
testing/fstest: Remove g_media_full since it isn't really used
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
7c4ddaeede
testing/fstest: Don't reuse the deleted name
...
to simplify the root cause analysis
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
1187351144
testing/fstest: Compare the file name directly
...
and remove crc of file name
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
Xiang Xiao
3b64ad34c3
testing/fstest: Fix the typo error
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-27 10:07:01 -03:00
anjianjun
54d94d21b8
testing/fstest:Support test fs with parameter
...
Signed-off-by: anjianjun <anjianjun@xiaomi.com>
2021-07-30 21:02:42 -07:00
Xiang Xiao
a91e10f8e4
testing/fstest: Add O_TRUNC flag in fstest_wrfile
...
MIRTOS-177
to avoid the interference from the lasting run
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-15 09:16:03 -03:00
paopao
26277cc946
testing: Exit with non zero value in the failure path
...
Change-Id: I90115ab51bcd937b8443a6aab2fabb6cd559aa85
Signed-off-by: paopao <v-cuixiaoling@xiaomi.com>
2021-06-14 23:00:25 +01:00
Dong Heng
d3c7508372
testing/fstest: Add hash checking of file's name to avoid creating same-name file
2021-03-30 00:59:16 -05:00
Alan Carvalho de Assis
f3828ccbca
fstest: Force the minimum filename to 4 to avoid collisions
2021-03-25 19:45:48 -07:00
Alan C. Assis
640fd2e860
fstest: Fix printf format error
2021-03-24 23:21:23 +01:00
YAMAMOTO Takashi
4d00277111
testing/fstest/fstest_main.c: Fix printf format warnings
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
faba0249c1
Include malloc.h instead of stdlib.h for mallinfo()
...
Adapt to the change in the main repo.
mallinfo is meant to be API compatible with Linux,
where it's provided by malloc.h.
(I think the API actually originated with System V. I don't
remember how it was there though. Anyway, I guess the
compatibility with Linux is more important than System V
these days.)
2020-06-15 07:21:52 -06:00
Gregory Nutt
3e73991857
nxstyle fixes for PR 170
2020-04-11 20:32:53 +01:00
Gregory Nutt
05f2253a33
Remove CONFIG_CAN_PASS_STRUCT
...
This is the companion to PR #766 . It removes the CONFIG_CAN_PASS_STRUCT option as recommended by Issue #620
NuttX PR #766 depends on PR being in place but not vice versa. This PR should be merge-able without #766 and then PR #766 should also pass its checks.
2020-04-11 20:32:53 +01:00
Ouss4
e55e310622
testing/fstest/fstest_main.c: Eliminate a warning found during the build
...
test.
2020-02-15 17:06:51 -06:00
Xiang Xiao
e0dcfa0c55
Remove extra whitespace from files ( #43 )
...
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
Xiang Xiao
857158451b
Unify the void cast usage
...
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro
Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
Xiang Xiao
e806097c70
Application.mk and main.c files: Change builtin's entry point from main to xxx_main by macro expansion. This change make the entry point fully compliant with POSIX/ANSI standard.
2019-10-06 06:14:56 -06:00
Gregory Nutt
60dc0a8f2b
testing/: Move all file system tests from examples/ to testing/ (fstest, nxffs, smart, smart_test).
2019-01-24 14:44:54 -06:00